from appium import webdriver
from appium.webdriver.common.appiumby import By
from time import sleep
from appium.webdriver.common.touch_action import TouchAction

desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '7'
desired_caps['deviceName'] = '127.0.0.1:62001'
driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps)
driver.implicitly_wait(10)  # 隐式等待
sleep(3)
TouchAction(driver).press(x=143,y=326).wait(1000).move_to(x=722,y=1203).wait(1000).release()

# driver.quit()

# 练习：完成随手记的手势密码设置
